<?php if (!is_string($info)) { ?>
    <div class="print-button hidden-print">
        <span class="k-button k-primary"><?php echo __('Imprimir kárdex'); ?></span>
    </div>
    <?php $this->Certificates->kardex($info); ?>
    <div class="print-button hidden-print">
        <span class="k-button k-primary"><?php echo __('Imprimir kárdex'); ?></span>
    </div>
<?php } else { ?>
    <div class="alert alert-warning"><?php echo $info; ?></div>
<?php } ?>